
package com.example.axon.commands;

import com.example.axon.events.AccountBaseEvent;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.axonframework.modelling.command.TargetAggregateIdentifier;

@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class TransferOutCmd implements AccountBaseEvent {

    @TargetAggregateIdentifier
    private String accountId;

    private String userName;
    private String password;
    private Double balance;

    private String txId;
    private String fromId;
    private String toId;
    private Double amount;


}